//
//  TCConfiguration.h
//  TrustCloud
//
//  Created by NetApp on 16/7/13.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef TCConfiguration_h
#define TCConfiguration_h

/*
 *  System Versioning Preprocessor Macros
 */
//#define SYSTEM_VERSION_EQUAL_TO(v)                  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedSame)
//#define SYSTEM_VERSION_GREATER_THAN(v)              ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedDescending)
//#define SYSTEM_ VERSION_GREATER_THAN_OR_EQUAL_TO(v)  ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedAscending)
//#define SYSTEM_VERSION_LESS_THAN(v)                 ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending)
//#define SYSTEM_VERSION_LESS_THAN_OR_EQUAL_TO(v)     ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] != NSOrderedDescending)



#define UI_SCREEN_WIDTH  [UIScreen mainScreen].bounds.size.width
#define UI_SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height


#pragma mark - UI NavigationBar

#define kYWKNavBarTitleColor    [UIColor colorWithHex:0x009FE9 alpha:1.f]//蓝
#define kYWKNavBarTitleFont     [UIFont systemFontOfSize:16.f]
#define kYWKNavBarItemTitleFont     [UIFont systemFontOfSize:14.f]


#pragma mark - UI TextColor
#define kYWKTextMakoColor       [UIColor colorWithHex:0x42464C alpha:1.f]//深灰
#define kYWKTextEdwardColor     [UIColor colorWithHex:0x969A98 alpha:1.f]//次级字灰
#define kYWKBackGroundColor     [UIColor colorWithHex:0xE8EBF2 alpha:1.f]//VC背景色

#pragma mark - UI separateLine
#define kYWKTextLilyWhiteColor     [UIColor colorWithHex:0xDCDEE0 alpha:1.f]//分隔线

#define kYWKToolBarColor        [UIColor colorWithHex:0xe8ebf2 alpha:1.f];//pickerView toolBar背景色

#define kYWKOrangeColor         [UIColor colorWithHex:0xFF8A6A alpha:1.f];//橙色
#define kYWKRedColor            [UIColor colorWithHex:0xFE5256 alpha:1.f];//红色

#define kYWKYellowVericationColor    [UIColor colorWithHex:0xF39019 alpha:1.f]//没有验证为好友黄色
#define kYWKButtonBlueColor          [UIColor colorWithHex:0x00A0E9 alpha:1.f]//button蓝色

#define kTextFontName @"PingFang SC"//@"PingFang Regular"//@"HelveticaNeue"//@"PingFang SC"

//#define kTextBoldFontName @"PingFang Bold"//平方粗体
#define kTextBoldFontName @"Arial-BoldMT" //数字粗体

#define kHEIGHTPICKERVIEW 176.f
#define kHEIGHTPICKERTOOLBAR 44.f
#define kROWHEIGHTPICKERVIEW 36.f

extern NSString * const YWKLoginOutNotification; //退出
extern NSString * const YWKShowLoginNotificateion; //登录

typedef NS_ENUM(NSInteger, YWKReportType)
{
    YWKReportTypeInvalid = -1,//监测异常
    YWKReportTypeSnoring = 1,//睡眠呼吸暂停初筛
    YWKReportTypeNightLowSpo = 2,//夜间低血氧初筛
    YWKReportTypeChronicObstructive = 3,//慢阻肺报告
    YWKReportTypeSnoringManager = 4,//睡眠呼吸暂停综合征管理报告
    YWKReportTypeNightLowSpo2Manager = 5,//夜间低氧血症管理报告
};

typedef NS_ENUM(NSInteger, YWKReportStatusType)
{
    YWKReportStatusUntreated     = 0,      // 未处理
    YWKReportStatusPending       = 1,      // 待处理
    YWKReportStatusCalulated     = 2,      // 已处理
    YWKReportStatusCalculating   = -1,     // 未生成
    YWKReportStatusLostData      = -2,     // 数据格式错误或者数据为空
    YWKReportStatusReCalulating  = -3,     // 重计算
    YWKReportStatusManHandle     = -4,     // 手动处理
    YWKReportStatusAuto          = -5,     // 自动处理
};

//#define kYWKShowLoginNotificateion = @"YWKShowLoginNotificateion"

#pragma mark - DEBUG Tool

#if DEBUG
#define ICTParameterAssert(x)    NSParameterAssert(x)
#else
#define ICTParameterAssert(x)
#endif

#pragma mark - Global Settings
//APP主题颜色
#define kAPPThemeColor [UIColor colorWithHex:0x009FE9 alpha:1.f] //主题颜色

//控件默认字体
#define kFontSize  16.f



#endif /* TCConfiguration_h */
